import service from '@/utils/request'

// @Tags TestStandardDocument
// @Summary 创建测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestStandardDocument true "创建测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /testStandardDocument/createTestStandardDocument [post]
export const createTestStandardDocument = (data) => {
  return service({
    url: '/testStandardDocument/createTestStandardDocument',
    method: 'post',
    data
  })
}

// @Tags TestStandardDocument
// @Summary 删除测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestStandardDocument true "删除测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /testStandardDocument/deleteTestStandardDocument [delete]
export const deleteTestStandardDocument = (params) => {
  return service({
    url: '/testStandardDocument/deleteTestStandardDocument',
    method: 'delete',
    params
  })
}

// @Tags TestStandardDocument
// @Summary 批量删除测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /testStandardDocument/deleteTestStandardDocument [delete]
export const deleteTestStandardDocumentByIds = (params) => {
  return service({
    url: '/testStandardDocument/deleteTestStandardDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags TestStandardDocument
// @Summary 更新测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TestStandardDocument true "更新测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /testStandardDocument/updateTestStandardDocument [put]
export const updateTestStandardDocument = (data) => {
  return service({
    url: '/testStandardDocument/updateTestStandardDocument',
    method: 'put',
    data
  })
}

// @Tags TestStandardDocument
// @Summary 用id查询测试标准
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.TestStandardDocument true "用id查询测试标准"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /testStandardDocument/findTestStandardDocument [get]
export const findTestStandardDocument = (params) => {
  return service({
    url: '/testStandardDocument/findTestStandardDocument',
    method: 'get',
    params
  })
}

// @Tags TestStandardDocument
// @Summary 分页获取测试标准列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取测试标准列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /testStandardDocument/getTestStandardDocumentList [get]
export const getTestStandardDocumentList = (params) => {
  return service({
    url: '/testStandardDocument/getTestStandardDocumentList',
    method: 'get',
    params
  })
}

// 获取detail结构
export const getDetailsOnline = (params) => {
  return service({
    url: '/testStandardDocument/getDetails',
    method: 'get',
    params
  })
}
